#!/bin/sh

#用户注册来源统计测试环境同步数据的脚本

branch=dev
date=`date  +'%Y-%m-%d %k:%M:%S'`

echo  "huoban_php /data/web/huoban_${branch}_v2/app/backend/command.php  -n cron_bdc_main -a log_daily_stats -t '${date}'"

sudo su - user_00 -l -c "huoban_php /data/web/huoban_${branch}_v2/app/backend/command.php  -n cron_bdc_main -a log_sync"
sudo su - user_00 -l -c "huoban_php /data/web/huoban_${branch}_v2/app/backend/command.php   -n cron_computational_resource_log_stats"
sudo su - user_00 -l -c "huoban_php /data/web/huoban_${branch}_v2/app/backend/command.php -n cron_bdc_main -a paas_table_sync -m daily -t '${date}'"
sudo su - user_00 -l -c "huoban_php /data/web/huoban_${branch}_v2/app/backend/command.php  -n cron_bdc_main -a log_daily_stats -t '${date}'"
sudo su - user_00 -l -c "huoban_php /data/web/huoban_${branch}_v2/app/backend/command.php  -n cron_bdc_main -a sync_paas -m daily -t '${date}'"
sudo su - user_00 -l -c "huoban_php /data/web/huoban_${branch}_v2/app/backend/command.php   -n bi_app_sync"
